import Vue from '../vue'

let vm = new Vue({
    el: '#app',
    data() {
        return {
            title: '学生列表',
            classNum: 1,
            total: 2,
            teacher: ['张三', '李四'],
            info: {
                a: {
                    b: '小汪汪的主人'
                }
            },
            students: [
                {
                    id: 1,
                    name: '小汪汪'
                }, {
                    id: 2,
                    name: '小喵喵'
                }
            ]
        }
    }
});
console.log(vm)
// document.getElementById('myh1').innerHTML=`我是${vm.info.a.b}`
// setTimeout(()=>{vm.info.a.b='小喵喵的主人'},3000)
// vm.info.a.b='你大爷'
// vm.title={name:'ooo'}
vm.students.push({id:3,name:'小哼哼'})